package com.jjh.users.util;

import java.util.Date;
import java.util.TimerTask;

/**
 * TimerTask:抽象类
 * @author lby
 *
 */
public class MyTimerTask extends TimerTask
{

	@Override
	public void run()
	{
		for(int i = 0 ; i < 10 ; i ++)
		{
			System.out.println(i + "===timer==" + new Date().toLocaleString());
			try
			{
				Thread.sleep(50);
			} catch (InterruptedException e)
			{
				e.printStackTrace();
			}
		}
	}
}
